CC=ifort
CFLAGS=
LDFLAGS=
EXEC=hello_world
SRC= hello_world.f90
OBJ= $(SRC:.f90=.o)



all: $(EXEC)

%.o: %.f90
	@echo "-- Compilation \t: " $@
	@$(CC) -o $@ -c $< $(CFLAGS)

$(EXEC): $(OBJ)
	@echo "-- Link " $@ "\t:" $^
	@$(CC) -o $(EXEC) $^ $(LDFLAGS)

clean:
	@rm -f *.o

mrproper: clean
	rm -rf $(EXEC)
